#include <core/Application.h>
#include <gui/MainWindow.h>
#include <cstdlib>

Application::Application(int argc, char * argv[]) {
    qtApplication = new QApplication(argc, argv);

    qtMainWindow = new MainWindow();
}

Application::~Application() {
    delete qtMainWindow;

    delete qtApplication;
}

void Application::start() {
    qtMainWindow->show();
}

int Application::exec() {
    return qtApplication->exec();
}
